public class Text {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        binaryTree.preOrder(root);
        System.out.println();
        binaryTree.inOrder(root);
        System.out.println();
        binaryTree.postOrder(root);
        System.out.println();
        System.out.println("打印结点的个数：");
        binaryTree.size(root);
        System.out.println(BinaryTree.usedSize);
        System.out.println("打印叶子结点的个数：");
        System.out.println(binaryTree.getLeafNodeCount(root));
    }
}
